<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   
      <title>PyWordNet</title>
      <link rel="stylesheet" href="styles.css" type="text/css">
      <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
      <link rel="home" href="index.html" title="PyWordNet">
      <link rel="next" href="examples.html" title="Examples">
   </head>
   <body id="index">
      <div class="banner"><span class="projectname"><a href="http://osteele.com/projects/pywordnet/">PyWordNet</a></span></div>
      <div id="navigation">
         <ul>
            <li><a id="nav-index" href="index.html">About</a></li>
            <li><a id="nav-examples" href="examples.html">Examples</a></li>
            <li><a id="nav-download" href="download.html">Download</a></li>
            <li><a id="nav-installation" href="installation.html">Install</a></li>
            <li><a id="nav-release-notes" href="release-notes.html">Release Notes</a></li>
            <li><a id="nav-contributors" href="contributors.html">Contributors</a></li>
            <li><a id="nav-license" href="license.html">License</a></li>
         </ul>
      </div>
      <div class="article" lang="en">
         <div class="titlepage">
            <div>
               <div>
                  <h2 class="title"><a name="d0e1"></a>PyWordNet
                  </h2>
               </div>
            </div>
            <div></div>
            <hr>
         </div>
         <p><span class="application">PyWordNet</span> is a
            <i class="glossterm">Python</i> interface to the
            <i class="glossterm">WordNet</i> database of word meanings and lexical
            relationships<sup>[<a name="d0e15" href="#ftn.d0e15">1</a>]</sup>.
         </p>
         <p>PyWordNet presents a concise interface to WordNet, that allows
            the user to type expressions such as <b class="userinput"><tt>N['dog']</tt></b>,
            <b class="userinput"><tt>hyponyms(N['dog'][0])</tt></b>, and
            <b class="userinput"><tt>closure(ADJ['red'], SYNONYM)</tt></b> to query the
            database.
         </p>
         <div class="informalexample">
            <table border="0" bgcolor="#E0E0E0">
               <tr>
                  <td><pre class="programlisting">
&gt;&gt;&gt; <b class="userinput"><tt>N['dog']</tt></b>
dog(n.)
&gt;&gt;&gt; <b class="userinput"><tt>N['dog'].getSenses()</tt></b>
('dog' in {noun: dog, domestic dog, Canis familiaris},
 'dog' in {noun: frump, dog}, 'dog' in {noun: dog},
 'dog' in {noun: cad, bounder, blackguard, dog, hound, heel},
 'dog' in {noun: pawl, detent, click, dog},
 'dog' in {noun: andiron, firedog, dog, dogiron})
</pre></td>
               </tr>
            </table>
         </div>
         <p>Files hosted by <a href="http://sourceforge.net/projects/pywordnet" target="_top">SourceForge</a>.
            
         </p>
         <div class="mediaobject"><img src="http://sourceforge.net/sflogo.php?group_id=27422"></div>
         <p>
            
         </p>
         <div class="footnotes"><br><hr width="100" align="left">
            <div class="footnote">
               <p><sup>[<a name="ftn.d0e15" href="#d0e15">1</a>] </sup>A lexical relationship is a relationship
                  between words, such as <i class="glossterm">synonym</i>, <i class="glossterm">antonym</i>, <i class="glossterm">hypernym</i>
                  (&#8220;<span class="quote">poodle</span>&#8221; 
                  &#8594; &#8220;<span class="quote">dog</span>&#8221;), and <i class="glossterm">hyponym</i> (&#8220;<span class="quote">poodle</span>&#8221; &#8594;
                  &#8220;<span class="quote">dog</span>&#8221;)
               </p>
            </div>
         </div>
      </div>
   </body>
</html>